<!--
 * @Descripttion:
 * @version:
 * @Author: Connor
 * @Date: 2021-03-17 20:06:53
 * @LastEditors: Connor
 * @LastEditTime: 2021-04-20 18:05:23
-->
<template>
  <div>
    <div class="current_debt">
      {{ extendCredit }}
    </div>
    <div title="点击查看详情" class="current_debt" style="color: blue" @click="openCurrentDebtDetail">{{currentDebt}}</div>

  </div>
</template>


<script>
    import {ajax} from "@/store/yg/common/utils";

    export default {
        props: [
            'row', 'data', 'more'
        ],
        data() {
            return {
                currentDebt: 0,
                extendCredit: ''
            }
        },
        created() {

        },
        mounted() {
            //console.log("currentDebt",this.data.currentDebt);
            this.currentDebt = this.data.currentDebt;
            this.extendCredit = this.data.extendCredit;
        },
        methods: {
            openCurrentDebtDetail() {
               //console.log("234234");
               //window.open("/#" + "/blank" + "/customer__balancedetail__main?currentDebt="+this.currentDebt+"&customerId="+this.data.id);
                window.open("/#" + "/blank" + "/customer__balancedetail__main?customerId="+this.data.id);
            }
        }
    }
</script>
<style scoped>
.current_debt {
    cursor: pointer;
}
</style>
